#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.65])
AC_INIT([Main], [1.0], [rock.zhang.cn@gmail.com])
AC_CONFIG_SRCDIR([Main.cpp])
AM_INIT_AUTOMAKE(Main, 1.0)
#AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL

# Checks for library functions.

#AC_CONFIG_FILES([Debug/makefile])
AC_OUTPUT(Makefile)

# Added for debug reason
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [enable debugging, default: no]), [case "${enableval}" in yes) debug=true ;; no)  debug=false ;; *)   
AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; esac], [debug=false])

AM_CONDITIONAL(DEBUG, test x"$debug" = x"true")
